.image-reveal-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
}

.original-image,
.overlay-image {
    width: 100%;
    height: auto;
    display: block;
}

.original-image {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #ff3d00;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.slider::after {
    content: '拖动';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 30px);
    color: #fff;
    background: rgba(0, 0, 0, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 3;
} 